package cn.nubia.admin.application.dto;

import cn.nubia.admin.common.utils.DateUtil;

import java.io.Serializable;

/**
 * Created by cnJason on 2015/7/6.
 * <p/>
 * 广告对象
 **/
public class AdSpaceDTO implements Serializable {

    private Integer id;//id
    private String adSpaceName;//广告位名称
    private Integer createTime; //创建时间
    private Integer sortIndex; //排序
    private Integer state;//状态（-1-删除 0-隐藏 1-显示）
    private Integer terminalId;//展示端id
    private String terminalName;//展示终端名称
    private Integer picWidth;//广告图片宽度
    private Integer picHeight;//广告图片高度
    private Integer adLimit;//广告个数限制
    private Integer adItemCount;//已有广告个数.
    private Integer createAdminId;
    private String createAdminName;//创建人的管理员名称
    private Integer modifyAdminId;//修改人的管理员id
    private String modifyAdminName;//修改人的管理员名称
    private Integer lastModifyTime;//最后修改时间

    private String createTimeShow;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCreateAdminId() {
        return createAdminId;
    }

    public void setCreateAdminId(Integer createAdminId) {
        this.createAdminId = createAdminId;
    }

    public String getAdSpaceName() {
        return adSpaceName;
    }

    public void setAdSpaceName(String adSpaceName) {
        this.adSpaceName = adSpaceName;
    }

    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
        if(createTime!=null && !"".equals(createTime)){
            this.createTimeShow = DateUtil.getFormatDate(createTime);
        }
    }

    public String getCreateTimeShow() {
        return createTimeShow;
    }

    public void setCreateTimeShow(String createTimeShow) {
        this.createTimeShow = createTimeShow;
    }

    public Integer getSortIndex() {
        return sortIndex;
    }

    public void setSortIndex(Integer sortIndex) {
        this.sortIndex = sortIndex;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(Integer terminalId) {
        this.terminalId = terminalId;
    }

    public String getTerminalName() {
        return terminalName;
    }

    public void setTerminalName(String terminalName) {
        this.terminalName = terminalName;
    }

    public Integer getPicWidth() {
        return picWidth;
    }

    public void setPicWidth(Integer picWidth) {
        this.picWidth = picWidth;
    }

    public Integer getPicHeight() {
        return picHeight;
    }

    public void setPicHeight(Integer picHeight) {
        this.picHeight = picHeight;
    }

    public Integer getAdLimit() {
        return adLimit;
    }

    public void setAdLimit(Integer adLimit) {
        this.adLimit = adLimit;
    }

    public Integer getAdItemCount() {
        return adItemCount;
    }

    public void setAdItemCount(Integer adItemCount) {
        this.adItemCount = adItemCount;
    }

    public String getCreateAdminName() {
        return createAdminName;
    }

    public void setCreateAdminName(String createAdminName) {
        this.createAdminName = createAdminName;
    }

    public Integer getModifyAdminId() {
        return modifyAdminId;
    }

    public void setModifyAdminId(Integer modifyAdminId) {
        this.modifyAdminId = modifyAdminId;
    }

    public String getModifyAdminName() {
        return modifyAdminName;
    }

    public void setModifyAdminName(String modifyAdminName) {
        this.modifyAdminName = modifyAdminName;
    }

    public Integer getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Integer lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }
}
